<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>模板返利网－买模板返现金，免费装修，淘宝店铺装修模板免费买</title>
        <link rel="stylesheet" type="text/css" href="/Public/default/css/style.css" />
        <link rel="stylesheet" type="text/css" href="/Public/default/css/UserLogin.css" />
        <link rel="stylesheet" type="text/css" href="/Public/default/css/regStep.css" />
        <link rel="stylesheet" type="text/css" href="/Public/css/default.css" />
        <script type="text/javascript" src="__ROOT__/Public/js/jquery.min.js"></script>
        <script type="text/javascript" src="__ROOT__/Public/js/jquery.form.js"></script>
        <script type="text/javascript" src="__ROOT__/Public/js/operamasks-ui.min.js"></script>
        <script src="http://a.tbcdn.cn/s/kissy/1.1.6/seed-min.js"></script>
        <script src="http://a.tbcdn.cn/apps/pamirsshop/wiki/scripts/wiki.js"></script>
    </head>

    <body onload="bhtml()">
        <div id="edit"></div>
        <div id="meng"></div>
        <div id="tips"></div>
        <!--头部-->
        <div class="top">
            <ul>
                <li><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=496886097&site=qq&menu=yes">售前QQ:496886097</a>；<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=2261356156&site=qq&menu=yes">售后QQ:2261356156</a>
                 <a href="#">网站地图</a> 
                 <a href="javascript:" onClick="window.external.addFavorite('http://www.fanlibm.com','模板反复网')" title="模板反复网">收藏本站</a> 
                 <?php if(empty($_SESSION['userid'])): ?><a href="__APP__/Public/register" class="red">免费注册</a> ¦ 
                 <a href="__APP__/Public/login" class="blue">登录</a> ¦ 
                 <?php else: ?>
                 <a href="__APP__/Public/logout" class="blue">安全退出</a> ¦<?php endif; ?>
                 <a href="__APP__/Index">网站首页</a> ¦ 
                 <a href="#">客服中心</a> ¦ 
                 <a href="#">帮助中心</a></li>
            </ul> 
        </div>
        <!--LOGO-->
        <div class="head">
            <div class="logo"><img src="/Public/default/images/logo.jpg" width="227" height="90" title="返利网" /></div>
            <div class="banner"><img src="/Public/default/images/banner.jpg" width="637" height="109" title="广告" /></div>
        </div>
        <!--导航-->
        <div class="nav">
            <div class="w980">
                <a href="/" <?php if(($module_name == 'Index') and ($action_name == 'index') or ($module_name == 'Public')): ?>class="cur"<?php endif; ?> >首页</a> 
                <a href="__APP__/Temp/index" <?php if(($module_name == 'Temp') and ($action_name == 'index')): ?>class="cur"<?php endif; ?> >装修模板</a> 
                <a href="__APP__/Article/index" <?php if(($module_name == 'Article') and ($action_name == 'index')): ?>class="cur"<?php endif; ?> >开店知识</a> 
                <a href="/" >返利教程（必读）</a> 
                <a href="/" >商业合作</a>               
            </div>
        </div>        
<script type="text/javascript">
            function qbot(){
                $("#tips").hide();
                $("body").css({"overflow":"auto"});
            }
            function query(i){
                var f = $('#formwork option:selected').val();
                var t = $('#trade option:selected').val();
                var c = $('#color option:selected').val();
                var s = $('#sty option:selected').val();
				var r = $('#rate option:selected').val();
                var n = $('#num').val();
                $.get('__URL__/addsty/f/'+f+'/t/'+t+'/c/'+c+'/s/'+s+'/id/'+i+'/n/'+n+'/r/'+r,function(data){
                    if(data == 1){
                        $("#tips").hide();
                        $("body").css({"overflow":"auto"});
                        var h = window.screen.height;
                        var w = window.screen.width;
                        $("#tips").css({"left":(w/2-100)+"px","top":(h/2-100)+"px","display":"block"});
                        $("#tips").html('<div style="font-size:12px; padding:10px;">修改成功</div>').animate({opacity: 'hide'}, 2000);
						document.location.reload();		
                    }
                    if(data == 0){
                        alert("上架后的模板，不允许设置属性为空");
                    }
                });
            }
            function bhtml(){
                var id = '<?php echo ($temp["id"]); ?>';
                $.get("__URL__/qhtml/id/"+id,function(data){
                    $("#ht").html(data);
                });
            }
        </script>

<div id="bd" style="position:relative; overflow:visible;">
    <div class="filter">
    <h1>选择模板</h1>	
    <div class="filter-item">
        <h3>返现比例</h3>
        <ul>            	
            <li <?php if($rate == 0): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/rate/0<?php if($trade != null): ?>/trade/<?php echo ($trade); endif; if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; ?>">全部</a><i></i></li>
            <li <?php if($rate == 100): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/rate/100<?php if($trade != null): ?>/trade/<?php echo ($trade); endif; if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; ?>">100%</a><i></i></li>
            <li <?php if($rate == 70): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/rate/70<?php if($trade != null): ?>/trade/<?php echo ($trade); endif; if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; ?>">70%</a><i></i></li>
            <li <?php if($rate == 50): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/rate/50<?php if($trade != null): ?>/trade/<?php echo ($trade); endif; if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; ?>">50%</a><i></i></li>
        </ul>
    </div>
    <div class="filter-item">
        <h3>新旺铺模板</h3>
        <ul>            	
            <li <?php if($farmwork == 0): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/farmwork/0<?php if($trade != null): ?>/trade/<?php echo ($trade); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>">全部</a><i></i></li>
            <li <?php if($farmwork == 1): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/farmwork/1<?php if($trade != null): ?>/trade/<?php echo ($trade); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>">高级模板</a><i></i></li>
            <li <?php if($farmwork == 2): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/farmwork/2<?php if($trade != null): ?>/trade/<?php echo ($trade); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>">简易模板</a><i></i></li>
            <li <?php if($farmwork == 3): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/farmwork/3<?php if($trade != null): ?>/trade/<?php echo ($trade); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>">JS模板</a><i></i></li>
            <li <?php if($farmwork == 4): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/farmwork/4<?php if($trade != null): ?>/trade/<?php echo ($trade); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>">TAE模板</a><i></i></li>
        </ul>
    </div>
    <div class="filter-item">
        <h3>旧旺铺模板</h3>
        <ul>            	
            <li <?php if($farmwork == 5): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/farmwork/5<?php if($trade != null): ?>/trade/<?php echo ($trade); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>">全部</a><i></i></li>
            <li <?php if($farmwork == 6): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/farmwork/6<?php if($trade != null): ?>/trade/<?php echo ($trade); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>">高级模板</a><i></i></li>
            <li <?php if($farmwork == 7): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/farmwork/7<?php if($trade != null): ?>/trade/<?php echo ($trade); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>">简易模板</a><i></i></li>               
        </ul>
    </div>
    <div class="filter-item">
        <h3>行业</h3>
        <ul>            	
            <li <?php if($trade == 0): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/trade/0<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>">全部</a><i></i></li>
            <li <?php if($trade == 1): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/trade/1<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>">通用</a><i></i></li>
            <li <?php if($trade == 2): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/trade/2<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>">服装配饰</a><i></i></li>      
            <li <?php if($trade == 3): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/trade/3<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>">精品鞋包</a><i></i></li>      
            <li <?php if($trade == 4): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/trade/4<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>">化妆健美</a><i></i></li>      
            <li <?php if($trade == 5): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/trade/5<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>">饰品珠宝</a><i></i></li>      
            <li <?php if($trade == 6): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/trade/6<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>">运动户外</a><i></i></li>      
            <li <?php if($trade == 7): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/trade/7<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>">家居装饰</a><i></i></li>      
            <li <?php if($trade == 8): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/trade/8<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>">数码家电</a><i></i></li>      
            <li <?php if($trade == 9): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/trade/9<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>">母婴用品</a><i></i></li>      
            <li <?php if($trade == 10): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/trade/10<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>">食品保健</a><i></i></li>      
            <li <?php if($trade == 11): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/trade/11<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>">生活兴趣</a><i></i></li>      
            <li <?php if($trade == 12): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/trade/12<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>">虚拟充值</a><i></i></li>               
        </ul>
    </div>
    <div class="filter-item">
        <h3>色系</h3>
        <ul>            	
            <li><a <?php if($color == 0): ?>class="i"<?php endif; ?> href="__APP__/Temp/index/color/0<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($trade != null): ?>/trade/<?php echo ($trade); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; ?>"<?php if($sort != null): ?>/sort/<?php echo ($sort); endif; ?>>全部<i></i></a></li>
            <div class="colors" style="position: relative;">
                <a <?php if($color == 6): ?>class="i"<?php endif; ?> href="__APP__/Temp/index/color/6<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($trade != null): ?>/trade/<?php echo ($trade); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>" style="background-color:#000;"><i></i></a>
                <a <?php if($color == 1): ?>class="i"<?php endif; ?> href="__APP__/Temp/index/color/1<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($trade != null): ?>/trade/<?php echo ($trade); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>" style="background-color:#f00;"><i></i></a>
                <a <?php if($color == 2): ?>class="i"<?php endif; ?> href="__APP__/Temp/index/color/2<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($trade != null): ?>/trade/<?php echo ($trade); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>" style="background-color:#00f;"><i></i></a>
                <a <?php if($color == 3): ?>class="i"<?php endif; ?> href="__APP__/Temp/index/color/3<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($trade != null): ?>/trade/<?php echo ($trade); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>" style="background-color:#0f0;"><i></i></a>
                <a <?php if($color == 4): ?>class="i"<?php endif; ?> href="__APP__/Temp/index/color/4<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($trade != null): ?>/trade/<?php echo ($trade); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>" style="background-color:#ffa500;"><i></i></a>
                <a <?php if($color == 5): ?>class="i"<?php endif; ?> href="__APP__/Temp/index/color/5<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($trade != null): ?>/trade/<?php echo ($trade); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>" style="background-color:#ffc0cb;"><i></i></a>
                <a <?php if($color == 7): ?>class="i"<?php endif; ?> href="__APP__/Temp/index/color/7<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($trade != null): ?>/trade/<?php echo ($trade); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>" href="#" style="background: url(/Public/images/colorbtns.png) -100px -20px no-repeat;"><i></i></a>
                <a <?php if($color == 8): ?>class="i"<?php endif; ?> href="__APP__/Temp/index/color/8<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($trade != null): ?>/trade/<?php echo ($trade); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>" href="#" style="background: url(/Public/images/colorbtns1.png) -60px -90px no-repeat;"><i></i></a>
            </div>       
        </ul>
    </div>
    <div class="filter-item">
        <h3>风格</h3>
        <ul>            	
            <li <?php if($sty == 0): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/sty/0<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($trade != null): ?>/trade/<?php echo ($trade); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>">全部</a><i></i></li>
            <li <?php if($sty == 1): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/sty/1<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($trade != null): ?>/trade/<?php echo ($trade); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>">时尚</a><i></i></li>
            <li <?php if($sty == 2): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/sty/2<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($trade != null): ?>/trade/<?php echo ($trade); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>">简约</a><i></i></li>      
            <li <?php if($sty == 3): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/sty/3<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($trade != null): ?>/trade/<?php echo ($trade); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>">古典</a><i></i></li>      
            <li <?php if($sty == 4): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/sty/4<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($trade != null): ?>/trade/<?php echo ($trade); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>">非主流</a><i></i></li>      
            <li <?php if($sty == 5): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/sty/5<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($trade != null): ?>/trade/<?php echo ($trade); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>">酷炫</a><i></i></li>      
            <li <?php if($sty == 6): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/sty/6<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($trade != null): ?>/trade/<?php echo ($trade); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>">可爱</a><i></i></li>      
            <li <?php if($sty == 7): ?>class="i"<?php endif; ?>><a href="__APP__/Temp/index/sty/7<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($trade != null): ?>/trade/<?php echo ($trade); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>">节日庆典</a><i></i></li>
        </ul>
    </div>
</div>
    <div>
        <?php if($trade != 0 and $trade != null or $color != 0 and $color != null or $sty != 0 and $sty != null): ?><div class="breadcrumb">
                <span class="title">已选择类型:</span>
                <ul>
                    <li><span><?php if($trade == 1): ?>通用<?php elseif($trade == 2): ?>服装配饰<?php elseif($trade == 3): ?>精品鞋包<?php elseif($trade == 4): ?>化妆健美<?php elseif($trade == 5): ?>饰品珠宝<?php elseif($trade == 6): ?>运动户外<?php elseif($trade == 7): ?>家居装饰<?php elseif($trade == 8): ?>数码家电<?php elseif($trade == 9): ?>母婴用品<?php elseif($trade == 10): ?>食品保健<?php elseif($trade == 11): ?>生活兴趣<?php elseif($trade == 12): ?>虚拟充值<?php endif; ?></span>
                        <a <?php if($trade == 0 or $trade == null ): ?>style="display: none";<?php endif; ?> href="__URL__/index/trade/0<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>"></a>
                    </li>


                    <li><span><?php if($color == 1): ?>红色<?php elseif($color == 2): ?>蓝色<?php elseif($color == 3): ?>绿色<?php elseif($color == 4): ?>橙色<?php elseif($color == 5): ?>粉色<?php elseif($color == 6): ?>黑色<?php elseif($color == 7): ?>黑白色<?php elseif($color == 8): ?>选彩色<?php endif; ?></span>
                        <a <?php if($color == 0 or $color == null ): ?>style="display: none";<?php endif; ?> href="__URL__/index/color/0<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($trade != null): ?>/trade/<?php echo ($trade); endif; if($sty != null): ?>/sty/<?php echo ($sty); endif; ?>"<?php if($sort != null): ?>/sort/<?php echo ($sort); endif; ?>></a>
                    </li>

                    <li><span><?php if($sty == 1): ?>时尚<?php elseif($sty == 2): ?>简约<?php elseif($sty == 3): ?>古典<?php elseif($sty == 4): ?>非主流<?php elseif($sty == 5): ?>酷炫<?php elseif($sty == 6): ?>可爱<?php elseif($sty == 7): ?>节日庆典<?php endif; ?></span>
                        <a <?php if($sty == 0 or $sty == null ): ?>style="display: none";<?php endif; ?> href="__URL__/index/sty/0<?php if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($trade != null): ?>/trade/<?php echo ($trade); endif; if($color != null): ?>/color/<?php echo ($color); endif; if($sort != null): ?>/sort/<?php echo ($sort); endif; if($rate != null): ?>/rate/<?php echo ($rate); endif; ?>"></a>
                    </li>
                </ul>
            </div><?php endif; ?>
        <div class="wrapper">
            <ul class="filter-order">
                <li class="order">
                    <span class="select-term"><?php if($sort == 1): ?>价格从低到高
                            <?php elseif($sort == 2): ?>价格从高到低
                            <?php elseif($sort == 3): ?>时间从新到旧
                            <?php elseif($sort == 4): ?>销量从高到低
                            <?php elseif($sort == 5): ?>销量从高到低
                            <?php elseif($sort == 7): ?>价格从高到低
                            <?php elseif($sort == 8): ?>价格从低到高
                            <?php else: ?>默认排序<?php endif; ?></span>
                    <span class="select-btn" onclick="lidi()"></span>
                    <ul class="item-term" id="item-t">
                        <li><a href="__URL__/index/sort/0<?php if($sty != null): ?>/sty/<?php echo ($sty); endif; if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($trade != null): ?>/trade/<?php echo ($trade); endif; if($color != null): ?>/color/<?php echo ($color); endif; ?>">默认排序</a></li>
                        <li><a href="__URL__/index/sort/1<?php if($sty != null): ?>/sty/<?php echo ($sty); endif; if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($trade != null): ?>/trade/<?php echo ($trade); endif; if($color != null): ?>/color/<?php echo ($color); endif; ?>">价格从低到高</a></li>
                        <li><a href="__URL__/index/sort/2<?php if($sty != null): ?>/sty/<?php echo ($sty); endif; if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($trade != null): ?>/trade/<?php echo ($trade); endif; if($color != null): ?>/color/<?php echo ($color); endif; ?>">价格从高到低</a></li>
                        <li><a href="__URL__/index/sort/3<?php if($sty != null): ?>/sty/<?php echo ($sty); endif; if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($trade != null): ?>/trade/<?php echo ($trade); endif; if($color != null): ?>/color/<?php echo ($color); endif; ?>">时间从新到旧</a></li>
                        <li><a href="__URL__/index/sort/4<?php if($sty != null): ?>/sty/<?php echo ($sty); endif; if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($trade != null): ?>/trade/<?php echo ($trade); endif; if($color != null): ?>/color/<?php echo ($color); endif; ?>">销量从高到低</a></li>
                    </ul>
                </li>
                <li class="down way">
                    <a href="__URL__/index/sort/5<?php if($sty != null): ?>/sty/<?php echo ($sty); endif; if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($trade != null): ?>/trade/<?php echo ($trade); endif; if($color != null): ?>/color/<?php echo ($color); endif; ?>">销量</a>
                </li>
                <li class="way down">
                <?php if($sort != 7): ?><a class="t1" <?php if($sort != 7): ?>style="display: block;"<?php endif; ?> href="__URL__/index/sort/7<?php if($sty != null): ?>/sty/<?php echo ($sty); endif; if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($trade != null): ?>/trade/<?php echo ($trade); endif; if($color != null): ?>/color/<?php echo ($color); endif; ?>">价格</a><?php endif; ?>
                <?php if($sort == 7): ?><a class="b1" <?php if($sort == 7): ?>style="display: block;"<?php endif; ?> href="__URL__/index/sort/8<?php if($sty != null): ?>/sty/<?php echo ($sty); endif; if($farmwork != null): ?>/farmwork/<?php echo ($farmwork); endif; if($trade != null): ?>/trade/<?php echo ($trade); endif; if($color != null): ?>/color/<?php echo ($color); endif; ?>">价格</a><?php endif; ?>
                </li>
            </ul>
        </div>
        <div class="temps">
            <?php if(!empty($temps)): if(is_array($temps)): $i = 0; $__LIST__ = $temps;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><div class="temp-item">
                        <div class="pic">
                            <a href="__URL__/detail/id/<?php echo ($v["id"]); ?>"><img src="<?php echo ($v["frontpage"]); ?>" /></a>
                        </div>
                        <div class="title"><a href="__URL__/index/id/<?php echo ($v["id"]); ?>"><?php echo ($v["title"]); ?></a></div>
                        <div class="price"><span class="site">本站价：
                                <?php if($v["rate"] == 1): ?><b>免费</b>	
                                    <?php else: ?>
                                    <?php echo ($v[price]*(1-$v['rate'])); ?>元<?php endif; ?>
                            </span><span class="tao">市场价<?php echo ($v["price"]); ?>元</span></div>
                    </div><?php endforeach; endif; else: echo "" ;endif; ?>
                <div style="height:10px; clear:both;"></div>	
                <?php echo ($page); ?>
                <?php else: ?>
                <div class="notemps">没有找到指定条件的模板</div><?php endif; ?>
        </div>
    </div>
</div>
</body>
<script type="text/javascript">
    function lidi(){
        var di = $("#item-t").css("display");
        if(di == 'none'){
            $("#item-t").show();
        }else{
            $("#item-t").hide();
        }
    }
    function sort(sort,dom){
        var so = $(dom).html();
        if(sort == 5){
            $(".select-term").html("销量从高到低");
        }else if(sort ==7){
            $(dom).hide();
            $(".b1").show();
            $(".select-term").html("价格从高到低");
        }else if(sort ==8){
            $(dom).hide();
            $(".t1").show();
            $(".select-term").html("价格从低到高");
        }else if(sort ==9){
            $(dom).hide();
            $(".s2").show();
        }else if(sort ==10){
            $(dom).hide();
            $(".s1").show();
        }else{
            $(".select-term").html(so);
        }
        $("#item-t").hide();
        $.get('__URL__/index/sort/'+sort+'/farmwork/'+'<?php echo ($farmwork); ?>'+'/trade/'+'<?php echo ($trade); ?>'+'/color/'+'<?php echo ($color); ?>'+'/sty/'+'<?php echo ($sty); ?>',function(){
            location.reload();
        });
    }
    
</script>
</html>